﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CSF.BusinessCore.Data;

namespace CSF.Communication.Data
{
    /// <summary>
    /// Author: Robin
    /// Create Date: 2011-4-29
    /// 电子邮件模板变量使用场合
    /// </summary>
    [Flags]
    public enum EmailSectionFlag
    {
        /// <summary>
        /// 用于邮件地址
        /// </summary>
        Address = 0x01,
        /// <summary>
        /// 用于标题
        /// </summary>
        Title = 0x02,
        /// <summary>
        /// 用于正文
        /// </summary>
        Body = 0x04,
        /// <summary>
        /// 用于签名
        /// </summary>
        Signature = 0x08,
    }

    /// <summary>
    /// Author: Robin
    /// Create Date: 2011-9-8
    /// 电子邮件模板中使用的变量
    /// </summary>
    public class EmailTemplateVariable : TransactionConfig
    {
        /// <summary>
        /// 变量可以使用的位置
        /// </summary>
        public EmailSectionFlag Section { get; set; }
        /// <summary>
        /// 是否系统内置
        /// </summary>
        public bool IsBuildin { get; set; }
    }
}
